{extend  name="Index/index" /}
{block name="main"}
<div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title am-fl">用户编辑</div>
                <div class="widget-function am-fr">
                    <a href="javascript:;" class="am-icon-cog"></a>
                </div>
            </div>
            <div class="widget-body am-fr">
                <form class="am-form tpl-form-border-form tpl-form-border-br myform" action="{:url('admin/User/doEdit')}"
                      method="post" enctype="multipart/form-data">
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">编号</label>
                        <div class="am-u-sm-9">
                            <input type="text" class="tpl-form-input" name="uid" id="user-name" value="{$data.uid}"
                                   readonly>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">用户名 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.username}">
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">姓名 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.uname}" name="uname">
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">手机号 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.utel}" readonly>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">邮箱 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.uemail}"
                                   name="uemail">
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">QQ </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.qq}" name="qq">
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">年龄 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.uage}" name="uage">
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">所学课程 <span
                                class="tpl-form-line-small-title">Author</span></label>
                        <div class="am-u-sm-3">
                            <select name="courseid" data-am-selected="{searchBox: 1}">
                                <option value="1">-The.CC</option>
                                <option value="2">夕风色</option>
                                <option value="3">Orange</option>
                            </select>
                        </div>
                        <label class="am-u-sm-2 am-form-label">所在班期 <span
                                class="tpl-form-line-small-title">Author</span></label>
                        <div class="am-u-sm-4">
                            <select name="classid" data-am-selected="{searchBox: 1}">
                                <option value="1">-The.CC</option>
                                <option value="2">夕风色</option>
                                <option value="3">Orange</option>
                            </select>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">推荐人编号 </label>
                        <div class="am-u-sm-9">
                            <input type="text" class="am-form-field tpl-form-no-bg" value="{$data.referid}" readonly>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">头像</label>
                        <div class="am-u-sm-9">
                            <div class="am-form-group am-form-file">
                                <div class="tpl-form-file-img">
                                    <img class="am-round"
                                         src="/uploads/{if condition='($data.uimg)' }{$data.uimg}{/if}"
                                         alt="用户头像"
                                         width="20%">
                                </div>
                                <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                    <i class="am-icon-cloud-upload"></i> 修改头像
                                </button>
                                <input id="doc-form-file" name="uimg" type="file" value="{$data.uimg}">
                            </div>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">是否报名</label>
                        <div class="am-u-sm-9">
                            <div class="tpl-switch">
                                <input type="checkbox" name="status" class="ios-switch bigswitch tpl-switch-btn" {if
                                       condition="($data['status'] == 1)" } checked {/if} value="1">
                                <div class="tpl-switch-btn-view">
                                    <div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success mysubmit">提交
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
